<%@page import="com.itwill.ecom.product.ProductServiceImpl"%>
<%@page import="com.itwill.ecom.product.ProductBeans"%>
<%@page import="com.itwill.ecom.product.ProductService"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	WebApplicationContext webContext=WebApplicationContextUtils.getWebApplicationContext(application);
	ProductServiceImpl ps = (ProductServiceImpl)webContext.getBean("productService");
	
	ProductBeans pb1=new ProductBeans(1,"ddd",333, 3, 11, "블라블라", 7, "0_1.jpg", "dd", "ee", 
									 "tt","uu", "qq", "ㅐㅐ","vv", "kk", "ll");
	ProductBeans pb2=new ProductBeans(2,"ㄹㄹㄹ",333, 1, 13, "라라", 10, "1_1.jpg", "dd", "ee", 
									 "tt","uu", "qq", "ㅐㅐ","vv", "kk", "ll");
	ProductBeans pb3=new ProductBeans(3,"jjj",333, 3, 13, "하하", 20, "2_1.jpg", "dd", "ee", 
									 "tt","uu", "qq", "ㅐㅐ","vv", "kk", "ll");
	ProductBeans pb4=new ProductBeans(4,"xxx",333, 4, 12, "용용", 6, "0_1.jpg", "dd", "ee", 
									 "tt","uu", "qq", "ㅐㅐ","vv", "kk", "ll");
	ProductBeans pb5=new ProductBeans(5,"nnn",333, 2, 15, "트랄라", 9, "1_1.jpg", "dd", "ee", 
									 "tt","uu", "qq", "ㅐㅐ","vv", "kk", "ll");
	ProductBeans pb6=new ProductBeans(6,"kkk",333, 4, 15, "귤", 200, "2_1.jpg", "dd", "ee", 
									 "tt","uu", "qq", "ㅐㅐ","vv", "kk", "ll");
	ProductBeans pb7=new ProductBeans(7,"ggg",333, 3, 12, "수박", 200, "gg", "dd", "ee", 
									 "tt","uu", "qq", "ㅐㅐ","vv", "kk", "ll");
	ProductBeans pb8=new ProductBeans(8,"iii",333, 2, 12, "파인애플", 100, "gg", "dd", "ee", 
									 "tt","uu", "qq", "ㅐㅐ","vv", "kk", "ll");
	ProductBeans pb9=new ProductBeans(9,"rrr",333, 1, 15, "사과", 400, "gg", "dd", "ee", 
									 "tt","uu", "qq", "ㅐㅐ","vv", "kk", "ll");
	ProductBeans pb10=new ProductBeans(10,"www",333,4, 13, "오렌지", 24, "gg", "dd", "ee", 
									 "tt","uu", "qq", "ㅐㅐ","vv", "kk", "ll");
	ProductBeans pb11=new ProductBeans(11,"mmm",333, 1, 11, "딸기", 25, "gg", "dd", "ee", 
									 "tt","uu", "qq", "ㅐㅐ","vv", "kk", "ll");
	
	
	ps.createProduct(pb1);
	ps.createProduct(pb2);
	ps.createProduct(pb3);
	ps.createProduct(pb4);
	ps.createProduct(pb5);
	ps.createProduct(pb6);
	ps.createProduct(pb7);
	ps.createProduct(pb8);
	ps.createProduct(pb9);
	ps.createProduct(pb10);
	ps.createProduct(pb11);
	
	

%>    
 